package com.gxa.p2p.pojo;

import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 充值记录
 */
@ToString
public class RechargeRecord implements Serializable {

    private static final long serialVersionUID = -5767731095116083051L;
    private Integer id;

    private Integer oddNumber;//充值单号

    private Integer userPhoneNum;//用户电话

    private String userName;//用户真实姓名

    private String userResource;//用户来源。例，PC注册，iOS注册，Andorid注册

    private Double rechargeAmount;//充值金额

    private Long paidInAccount;//到账金额

    private Integer handingFee;//手续费

    private String paidInWay;//充值方式

    private Integer transactionSerialNumber;//交易流水号

    private Date orderTime;//订单时间

    public RechargeRecord(Integer id, Integer oddNumber, Integer userPhoneNum, String userName, String userResource, Double rechargeAmount, Long paidInAccount, Integer handingFee, String paidInWay, Integer transactionSerialNumber, Date orderTime) {
        this.id = id;
        this.oddNumber = oddNumber;
        this.userPhoneNum = userPhoneNum;
        this.userName = userName;
        this.userResource = userResource;
        this.rechargeAmount = rechargeAmount;
        this.paidInAccount = paidInAccount;
        this.handingFee = handingFee;
        this.paidInWay = paidInWay;
        this.transactionSerialNumber = transactionSerialNumber;
        this.orderTime = orderTime;
    }

    public RechargeRecord() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOddNumber() {
        return oddNumber;
    }

    public void setOddNumber(Integer oddNumber) {
        this.oddNumber = oddNumber;
    }

    public Integer getUserPhoneNum() {
        return userPhoneNum;
    }

    public void setUserPhoneNum(Integer userPhoneNum) {
        this.userPhoneNum = userPhoneNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserResource() {
        return userResource;
    }

    public void setUserResource(String userResource) {
        this.userResource = userResource == null ? null : userResource.trim();
    }

    public Double getRechargeAmount() {
        return rechargeAmount;
    }

    public void setRechargeAmount(Double rechargeAmount) {
        this.rechargeAmount = rechargeAmount;
    }

    public Long getPaidInAccount() {
        return paidInAccount;
    }

    public void setPaidInAccount(Long paidInAccount) {
        this.paidInAccount = paidInAccount;
    }

    public Integer getHandingFee() {
        return handingFee;
    }

    public void setHandingFee(Integer handingFee) {
        this.handingFee = handingFee;
    }

    public String getPaidInWay() {
        return paidInWay;
    }

    public void setPaidInWay(String paidInWay) {
        this.paidInWay = paidInWay == null ? null : paidInWay.trim();
    }

    public Integer getTransactionSerialNumber() {
        return transactionSerialNumber;
    }

    public void setTransactionSerialNumber(Integer transactionSerialNumber) {
        this.transactionSerialNumber = transactionSerialNumber;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }
}